package cn.diancan.model.types;

import java.util.ArrayList;
import java.util.List;

public class EducationType {

    private Integer id;
    private String eduName;
    
    public List<EducationType> allEdu(){
	List<EducationType> list = new ArrayList<EducationType>(); 
	list.add(new EducationType(1,"小学及以下"));
	list.add(new EducationType(2,"初中"));
	list.add(new EducationType(3,"高中"));
	list.add(new EducationType(4,"中专"));
	list.add(new EducationType(5,"大专"));
	list.add(new EducationType(6,"本科"));
	list.add(new EducationType(7,"研究生"));
	list.add(new EducationType(8,"博士及以上"));
	return list;
    }
    
    public static Integer checkId(Integer id){
   	if(null == id){
   	    return 1;
   	}
   	if(id<1 || id>12){
   	    return 1;
   	}
   	return id;
    }
    
    public EducationType(Integer id, String eduName) { 
	this.id = id;
	this.eduName = eduName;
    }
    public EducationType() {
	super();
    }
    public Integer getId() {
        return id;
    }
    public void setId(Integer id) {
        this.id = id;
    }
    public String getEduName() {
        return eduName;
    }
    public void setEduName(String eduName) {
        this.eduName = eduName;
    }
    
    
}
